package com.charm.bulkcomponent.adapter

import com.chad.library.adapter.base.BaseViewHolder
import com.charm.bulkcomponent.R
import com.charm.bulkcomponent.entity.UserCenterEntity
import com.charm.frameworkarou.recycleadapter.QuickRecyAdapter

/**
 * Created by tools on 2018/1/22.
 */
class UserCenterAdapter(list: List<UserCenterEntity>?) : QuickRecyAdapter<UserCenterEntity>(list) {
    override fun getLayoutResId(): Int {
        return R.layout.item_user_center
    }

    override fun convert(helper: BaseViewHolder?, item: UserCenterEntity?) {
        helper!!.setText(R.id.title, item!!.title)
                .setText(R.id.description, item.description)
    }

}